package io.renren.service;

import com.alibaba.fastjson.JSONObject;
import io.renren.common.page.PageData;
import io.renren.common.service.CrudService;
import io.renren.common.utils.Result;
import io.renren.dto.AuxiliaryMateriDTO;
import io.renren.entity.AuxiliaryMateriEntity;
import io.renren.entity.UserEntity;

import java.util.List;
import java.util.Map;

/**
 * 辅材采购表
 *
 * @author 罗胜平 781757616@qq.com
 * @since 1.0.0 2019-11-22
 */
public interface AuxiliaryMateriService extends CrudService<AuxiliaryMateriEntity, AuxiliaryMateriDTO> {


    /**
     * 当前订单
     * @param params
     * @return
     */
    List<AuxiliaryMateriDTO> selectHome(Map<String,Object> params);

    void saveAuxiliaryOrder(JSONObject params ,UserEntity entity);

    PageData<AuxiliaryMateriDTO> pageAdmin(Map<String, Object> params);
    //updateExamine
    Result updateExamine(AuxiliaryMateriDTO dto, UserEntity userEntity);
    Result UpdateSupplierOrder(AuxiliaryMateriDTO dto, UserEntity userEntity);
    //辅材订单
    Map selecSupplierMateriOrder(Long supplierId);

    PageData<AuxiliaryMateriDTO> pageChef(Map<String, Object> params);

    PageData<AuxiliaryMateriDTO> pagesTorehouseClerk(Map<String, Object> params,  UserEntity entity);
    PageData<AuxiliaryMateriDTO> getOrder(Map<String, Object> params,  UserEntity entity);
    //查询订单未处理的状态
    AuxiliaryMateriDTO getTotal(Long chedId, Long clerkId, Long canteenId, int status);
}